package org.zfes.snowier.common.monitor.mysql.dump;

import java.io.Serializable;
/**
 * yml配置文件读取项
 * @author zhaoht
 *
 */
public class MysqlDops implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	private String ip;
	private String port;
	private String username;
	private String password;
	private String mysqldumpPath;
	private String mysqlPath;
	private String databaseName;
	private boolean lockTable=false;
	private String resultFilePath;
	private String resourceSQLFile;

	
	public MysqlDops() {
		super();
	}
	public MysqlDops(String ip, String port, String username, String password) {
		super();
		this.ip = ip;
		this.port = port;
		this.username = username;
		this.password = password;
	}
	
	public MysqlDops(String ip, String port, String username, String password, String databaseName) {
		super();
		this.ip = ip;
		this.port = port;
		this.username = username;
		this.password = password;
		this.databaseName = databaseName;
	}
	
	public MysqlDops(String ip, String port, String username, String password, String mysqldumpPath, String databaseName,
			String resultFilePath) {
		super();
		this.ip = ip;
		this.port = port;
		this.username = username;
		this.password = password;
		this.mysqldumpPath = mysqldumpPath;
		this.databaseName = databaseName;
		this.resultFilePath = resultFilePath;
	}
	
	public MysqlDops(String ip, String port, String username, String password, String mysqldumpPath, String databaseName,
			String resultFilePath, String resourceSQLFile) {
		super();
		this.ip = ip;
		this.port = port;
		this.username = username;
		this.password = password;
		this.mysqldumpPath = mysqldumpPath;
		this.databaseName = databaseName;
		this.resultFilePath = resultFilePath;
		this.resourceSQLFile = resourceSQLFile;
	}
	public String getIp() {
		return ip;
	}
	public MysqlDops setIp(String ip) {
		this.ip = ip;
		return this;
	}
	public String getPort() {
		return port;
	}
	public MysqlDops setPort(String port) {
		this.port = port;
		return this;
	}
	public String getUsername() {
		return username;
	}
	public MysqlDops setUsername(String username) {
		this.username = username;
		return this;
	}
	public String getDatabaseName() {
		return databaseName;
	}
	public MysqlDops setDatabaseName(String databaseName) {
		this.databaseName = databaseName;
		return this;
	}
	public String getPassword() {
		return password;
	}
	public MysqlDops setPassword(String password) {
		this.password = password;
		return this;
	}

	public String getMysqldumpPath() {
		return mysqldumpPath;
	}
	public MysqlDops setMysqldumpPath(String mysqldumpPath) {
		this.mysqldumpPath = mysqldumpPath;
		return this;
	}
	public String getResultFilePath() {
		return resultFilePath;
	}
	public MysqlDops setResultFilePath(String resultFilePath) {
		this.resultFilePath = resultFilePath;
		return this;
	}
	public String getResourceSQLFile() {
		return resourceSQLFile;
	}
	public MysqlDops setResourceSQLFile(String resourceSQLFile) {
		this.resourceSQLFile = resourceSQLFile;
		return this;
	}
	public boolean isLockTable() {
		return lockTable;
	}
	public MysqlDops setLockTable(boolean lockTable) {
		this.lockTable = lockTable;
		return this;
	}
	public String getMysqlPath() {
		return mysqlPath;
	}
	public MysqlDops setMysqlPath(String mysqlPath) {
		this.mysqlPath = mysqlPath;
		return this;
	}
	
	

	@Override
	public String toString() {
		return "MysqlDops [ip=" + ip + ", port=" + port + ", username=" + username + ", password=" + password
				+ ", mysqldumpPath=" + mysqldumpPath + ", mysqlPath=" + mysqlPath + ", databaseName=" + databaseName
				+ ", lockTable=" + lockTable + ", resultFilePath=" + resultFilePath + ", resourceSQLFile="
				+ resourceSQLFile + "]";
	}

}
